<template>
  <el-dialog
    title="现场数据"
    :visible.sync="openPhoto"
    width="900px"
    append-to-body
    v-dialogDrag
    :close-on-click-modal="false"
  >
    <el-form
      ref="formPhoto"
      :model="formPhoto"
      label-width="120px"
      :inline="true"
    >
      <el-form-item label="现场照片" prop="conditionName">
        <image-upload v-model="formPhoto.calcFile" />
      </el-form-item>
    </el-form>
     <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitPhoto"
          >确 定</el-button
        >
        <el-button @click="cancelPhoto">取 消</el-button>
      </div>
  </el-dialog>
</template>
<script>
export default {
  props:["openPhoto","photoId"],
  data() {
    return {
      formPhoto: {},
    };
  },
};
</script>
